<template>
  <admin-layout v-if="isAdmin"/>
  <normal-layout v-else/>
</template>

<script setup>
  import { onMounted, computed } from 'vue'
  import { useStore } from 'vuex'

  import AdminLayout from '@/layout/admin/AdminLayout'
  import NormalLayout from '@/layout/normal/NormalLayout'

  const store = useStore()
  const isAdmin = computed(() => store.getters.isAdmin)
  console.log(isAdmin)

  onMounted(() => {
    //

  })

</script>

<style scoped>
</style>
